<?php
class pastaComponent extends Component{
    public function show($model, $item) {
        $this->Html->LoadCss('files/files');
        $this->LoadModel('files/arquivo', 'arq');
        $arqs = $this->arq->getFilesByFolder($item['cod_pasta']);
        $this->LoadComponent('files/arquivo', 'arq');
        $this->arq->showAnexos('files/arquivo', $arqs);
    }
}
?>